package demo03;

public class DemoArrayMax {
    public static void main(String[] args) {
        int[] array={12,4,6,34,7};
        int max=array[0];
        for (int i = 0; i < array.length; i++) {
            if (max<array[i])
                max=array[i];
        }
        System.out.println("max="+max);
    }
}
